package nl.saxion.act.bus;

public class Locatie {

    public final double x;
    public final double y;

    public Locatie( double eenX, double eenY )
    {
        x = eenX;
        y = eenY;
    }
    
    public boolean equals( Locatie other )
    {
    	return other != null && other.getClass() == getClass() && x == other.x && y == other.y;
    }

    public int    hashCode() { return (int)( x + 10000*y );    }
    public String toString() { return "(" + x + "," + y + ")"; }
}
